package cn.ickck.law_paper_final.service.Impl;

import cn.ickck.law_paper_final.mapper.CreditCardBatchMapper;
import cn.ickck.law_paper_final.mapper.CreditCardMapper;
import cn.ickck.law_paper_final.model.entity.CreditCardBatch;
import cn.ickck.law_paper_final.service.CreditCardBatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 18:09 2020/10/21
 */
@Service
public class CreditCardBatchServiceImpl implements CreditCardBatchService {
    @Autowired
    private CreditCardBatchMapper creditCardBatchMapper;

    @Override
    public Integer insert(CreditCardBatch creditCardBatch) {

       return creditCardBatchMapper.insert(creditCardBatch);


    }


    @Override
    public List<CreditCardBatch> findAll() {
        return creditCardBatchMapper.findAll();
    }
    @Override
    public CreditCardBatch findKeyById(Integer id) {
        return creditCardBatchMapper.findKeyById(id);
    }

    @Override
    public void deleteById(Integer id) {
        creditCardBatchMapper.deleteById(id);
    }

    @Override
    public void update(CreditCardBatch creditCardBatch) {
        creditCardBatchMapper.update(creditCardBatch);
    }

    @Override
    public int Count() {
        return creditCardBatchMapper.count();
    }


    @Override
    public List<CreditCardBatch> findByPage(int start, int end) {
        return creditCardBatchMapper.findByPage(start,end);
    }

    @Override
    public List<CreditCardBatch> findBatchByName(String name) {
        return creditCardBatchMapper.findBatchByName(name);
    }
}
